#include "GameStatePause.h"


GameStatePause::GameStatePause(GameStateManager& gameStateManager) :
GameState(gameStateManager)
{
}


GameStatePause::~GameStatePause()
{

}

/**
 * @fn	void GameStatePause::start()
 *
 * @brief	Trigger the event "pause" with true parameter (starting the pause).
 *
 */

void GameStatePause::start()
{
	EventManager<bool>::getInstance().call("pause", true);
}

void GameStatePause::end()
{
}

/**
 * @fn	void GameStatePause::inputKeyReturn()
 *
 * @brief	Change state to GameStateGame
 *
 */
void GameStatePause::inputKeyReturn()
{
	m_gameStateManager.changeState(std::make_shared<GameStateGame>(m_gameStateManager));
}

/**
* @fn	void GameStatePause::inputKeyEscape()
*
* @brief	Change state to GameStateGame
*
*/
void GameStatePause::inputKeyEscape()
{
	m_gameStateManager.changeState(std::make_shared<GameStateGame>(m_gameStateManager));
}

void GameStatePause::inputKeyUp()
{
}

void GameStatePause::inputKeyDown()
{
}